<?php
class UserAction extends CommonAction{
	
	public function admin_list(){
		$data['breadcrumbs'] = array(
		     array('text'=>'后台首页','href'=>'#','separator'=>'>>',),
		     array('text'=>'用户系统','href'=>'#','separator'=>'>>',),
		     array('text'=>'管理员列表','href'=>U('User/admin_list'),'separator'=>'',),
		);
		$data['action'] = U('User/admin_list?action=submit');
		$this->assign('data',$data);	
		$this->display();
	}
	
	public function admin_add(){
		$data['breadcrumbs'] = array(
		     array('text'=>'后台首页','href'=>'#','separator'=>'>>',),
		     array('text'=>'用户系统','href'=>'#','separator'=>'>>',),
		     array('text'=>'管理员添加','href'=>U('User/admin_add'),'separator'=>'',),
		);
		$data['action'] = U('User/admin_add?action=submit');
		$this->assign('data',$data);	
		$this->display('admin_edit');
	}
	
	public function admin_edit(){
		$data['breadcrumbs'] = array(
		     array('text'=>'后台首页','href'=>'#','separator'=>'>>',),
		     array('text'=>'用户系统','href'=>'#','separator'=>'>>',),
		     array('text'=>'管理员添加','href'=>U('User/admin_edit'),'separator'=>'',),
		);
		$data['action'] = U('User/admin_edit?action=submit');
		$this->assign('data',$data);	
		$this->display('');
	}
	
	public function user_list(){
		$data['breadcrumbs'] = array(
		     array('text'=>'后台首页','href'=>'#','separator'=>'>>',),
		     array('text'=>'用户系统','href'=>'#','separator'=>'>>',),
		     array('text'=>'会员列表','href'=>U('User/user_list'),'separator'=>'',),
		);
		$data['action'] = U('User/user_list?action=submit');
		$this->assign('data',$data);	
		$this->display();
	}
	
	public function user_add(){
		$data['breadcrumbs'] = array(
		     array('text'=>'后台首页','href'=>'#','separator'=>'>>',),
		     array('text'=>'用户系统','href'=>'#','separator'=>'>>',),
		     array('text'=>'会员添加','href'=>U('User/user_add'),'separator'=>'',),
		);
		$data['action'] = U('User/user_add?action=submit');
		$this->assign('data',$data);	
		$this->display('user_edit');
	}
	
	public function user_edit(){
		$data['breadcrumbs'] = array(
		     array('text'=>'后台首页','href'=>'#','separator'=>'>>',),
		     array('text'=>'用户系统','href'=>'#','separator'=>'>>',),
		     array('text'=>'会员添加','href'=>U('User/user_edit'),'separator'=>'',),
		);
		$data['action'] = U('User/user_edit?action=submit');
		$this->assign('data',$data);	
		$this->display();
	}
	
	public function group_list(){
		$data['breadcrumbs'] = array(
		     array('text'=>'后台首页','href'=>'#','separator'=>'>>',),
		     array('text'=>'用户系统','href'=>'#','separator'=>'>>',),
		     array('text'=>'会员组列表','href'=>U('User/group_list'),'separator'=>'',),
		);
		$data['action'] = U('User/group_list?action=submit');
		$this->assign('data',$data);	
		$this->display();
	}
	
	public function group_add(){
		$data['breadcrumbs'] = array(
		     array('text'=>'后台首页','href'=>'#','separator'=>'>>',),
		     array('text'=>'用户系统','href'=>'#','separator'=>'>>',),
		     array('text'=>'会员组添加','href'=>U('User/group_add'),'separator'=>'',),
		);
		$data['action'] = U('User/group_add?action=submit');
		$this->assign('data',$data);	
		$this->display('admin_edit');
	}
	
	public function group_edit(){
		$data['breadcrumbs'] = array(
		     array('text'=>'后台首页','href'=>'#','separator'=>'>>',),
		     array('text'=>'用户系统','href'=>'#','separator'=>'>>',),
		     array('text'=>'会员组添加','href'=>U('User/group_edit'),'separator'=>'',),
		);
		$data['action'] = U('User/group_edit?action=submit');
		$this->assign('data',$data);	
		$this->display();
	}

}
?>